﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;

namespace DFGK_WMS.Model.Models
{
    /// <summary>
    /// 仓位锁定明细 等于出库单明细
    /// </summary>
    public partial class TShippingLockCell
    {
        /// <summary>
        /// 主键Id
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        /// 出库单Id
        /// </summary>
        public int? OrderId { get; set; }

        /// <summary>
        /// 出库单明细Id
        /// </summary>
        public int? OrderDetailId { get; set; }
        /// <summary>
        /// 出库单号
        /// </summary>
        public string? OrdeSn { get; set; }
        /// <summary>
        /// 库存Id
        /// </summary>
        public int? InventoryId { get; set; }

        /// <summary>
        /// 仓位Id
        /// </summary>
        public int? CellId { get; set; }

        /// <summary>
        /// 仓位编码
        /// </summary>
        public string CellCode { get; set; }

        /// <summary>
        /// 仓位名称
        /// </summary>
        public string CellName { get; set; }

        /// <summary>
        /// 仓位深度
        /// </summary>
        public int? CellDepthIndex { get; set; }

        /// <summary>
        /// 垛条码
        /// </summary>
        public string PalletBarcode { get; set; }

        /// <summary>
        /// 库Id
        /// </summary>
        public int? WhId { get; set; }

        /// <summary>
        /// 组垛Id
        /// </summary>
        public int? StackingStorageId { get; set; }

        /// <summary>
        /// 出库数量
        /// </summary>
        [Column(TypeName = "decimal(18,2)")]
        public decimal? OutQty { get; set; }

        /// <summary>
        /// 库存数量
        /// </summary>
        [Column(TypeName = "decimal(18,2)")]
        public decimal? InventoryQty { get; set; }

        /// <summary>
        /// 序号
        /// </summary>
        public int? LockIndex { get; set; }

        /// <summary>
        /// 物料Id
        /// </summary>
        public int? MaterialId { get; set; }

        /// <summary>
        /// 物料编码
        /// </summary>
        public string MaterialCode { get; set; }

        /// <summary>
        /// 物料名称
        /// </summary>
        public string MaterialName { get; set; }

        /// <summary>
        /// 物料批次Id
        /// </summary>
        public int? MaterialKeyId { get; set; }

        /// <summary>
        /// 批次号
        /// </summary>
        public string BatchNo { get; set; }
        /// <summary>
        /// 小批次号
        /// </summary>
        public string SmallBatchNo { get; set; }

        /// <summary>
        /// 是否拣选  现在用来表示这个物料是否出库完成
        /// </summary>
        public bool? IsPicking { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateDate { get; set; }

        public int? RoutewayId { get; set; }
        /// <summary>
        /// 西安-特殊库存标识
        /// </summary>
        public string ParentPalletBarcode { get; set; }

        /// <summary>
        /// 西安-立体库库存Id
        /// </summary>
        public string StockDetailsId { get; set; }

        /// <summary>
        /// 西安-物料序列号
        /// </summary>
        public string SerialNo { get; set; }

        /// <summary>
        /// 西安-启用序列号标识
        /// </summary>
        public string SerialNumberEnabled { get; set; }

        /// <summary>
        /// 西安-仓储区域
        /// </summary>
        public string StorageArea { get; set; }

        /// <summary>
        /// 西安-库存类型
        /// </summary>
        public string StoreType { get; set; }

        [NotMapped]
        public bool Checked { get; set; } = false;
    }
}